home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / rtetc800.zip / UTILS800.ZIP / CHEM2SCN.BAT < prev    next >
DOS Batch File  |  1992-08-11  |  315b  |  16 lines

  1. @echo off
  2. set name=%0
  3. if "%1" == "" goto params
  4. if not "%2" == "" goto params
  5. if not exist %1 goto error1
  6. sed "1,$s/[(),]/ /g" <%1|sort|awk -f chem2scn.awk|sort
  7. goto end
  8. :params
  9. echo %name%: usage is "%name% {chem_file} [>scn_file]"
  10. goto end
  11. :error1
  12. echo %name%: %1 not found
  13. goto end
  14. :end
  15. set name=
  16.